package com.ncucoder.jwva.model;

import java.sql.Timestamp;

/**
 * @author <a href="https://edit.ncucoder.com">hsowan</a>
 * @since 2018-12-28 16:43
 */
public class Visitor {

    private Long id;
    private String ip;
    private Timestamp visitTime;
    private Integer count;

    public Visitor() {
    }

    public Visitor(String ip, Timestamp visitTime, Integer count) {
        this.ip = ip;
        this.visitTime = visitTime;
        this.count = count;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Timestamp getVisitTime() {
        return visitTime;
    }

    public void setVisitTime(Timestamp visitTime) {
        this.visitTime = visitTime;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "Visitor{" +
                "id=" + id +
                ", ip='" + ip + '\'' +
                ", visitTime=" + visitTime +
                ", count=" + count +
                '}';
    }
}
